<html>
<head>
    <#include "${request.getContextPath()}/commonPage.html" />
    <style>
        .l-btn-text {
            display: inline-block;
            vertical-align: top;
            width: auto;
            line-height: 28px;
            font-size: 22px;
            padding: 0;
            margin: 0 6px;
        }

        .l-btn {
            background-color: #007fe1;
        }

        .l-btn:hover {
            background: #163fe0;
        }

    </style>
    <script>
        $(function () {
            var y = ($("#log").parent().height() - 450) / 2;
            $("#log").css("top", y).css("right", 100);
            var width = $("#log").parent().width();
            if (width >= 2500) {
                $('#bg').css('background', 'url(/img/bg.jpeg)');
            } else if (width >= 1900 && width < 2500) {
                $('#bg').css('background', 'url(/img/bg_mid.jpeg)');
            } else if (width >= 1400 && width < 1900) {
                $('#bg').css('background', 'url(/img/bg_min.jpeg)');
            } else {
                $('#bg').css('background', 'url(/img/bg_min.jpeg)');
            }
        })

    </script>
</head>
<body style="padding: 0;margin: 0">
<div id="bg"
     style="width: 100%;height: 100%; margin:0px;padding:0px;border:0px;background: no-repeat fixed top left;background-size:100% 100%;">
    <div id="log" style="width: 400px;height:450px;padding:50px;background-color: white;position: absolute">
        <h2 style="color: #007fe1">用户登录</h2>
        <form method="post" action="/user/login">
            <div style="margin-bottom:30px">
                <input name="userName" class="easyui-textbox" style="width: 100%;height: 40px;"
                       data-options="prompt:'用户名'">
            </div>
            <div style="margin-bottom:30px">
                <input name="passWord" class="easyui-passwordbox" style="width: 100%;height: 40px;"
                       data-options="prompt:'密码'">
            </div>
            <div>
                <input type="submit" value="登录" class="easyui-linkbutton" style="width:100%;height:40px;color: white"
                       data-options="plain:true">
            </div>
            <span></span>
        </form>
    </div>
</div>
</body>
</html>
